package com.example.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * name: 东北宋小宝
 * date: 2020/8/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private Long id;
    private String nickname;
    private String email;
    private String content;
    private String avatar;
    private Date creatTime;
    private Long blogId;
    private Blog blog;
    private Long parentCommentId;
    private List<Comment> replyComments;
    private Comment parentComment;
}
